package ooad.nextgen.gof.composite;

import java.util.ArrayList;
import java.util.List;

import ooad.nextgen.domain.Money;
import ooad.nextgen.domain.Sale;
import ooad.nextgen.gof.strategy.ISalePricingStrategy;

public abstract class CompositePricingStrategy implements ISalePricingStrategy{
	protected List<ISalePricingStrategy> strategies = new ArrayList<ISalePricingStrategy>();
	public abstract Money getTotal(Sale sale);
	public void add(ISalePricingStrategy strategy){
		strategies.add(strategy);
	}
}
